<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <!--<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />-->
    <!--<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />-->
    <title>注册</title>
    <script src="js/flexible_new.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="css/base.css"/>
    <link rel="stylesheet" type="text/css" href="css/load.css"/>
    
</head> 
<body>
	<div id="top">
	<i class="tuichu">+</i>注册
	</div>
	<div id="load">
		<form action="" method="post">
			
			<input type="text"  class="namepsd" placeholder="请输入手机号"/>
			<input type="number"  class="namepsd" placeholder="请输入验证码"/>
			<input type="password"  class="namepsd" placeholder="请输入密码"/>
			<input type="password" class="namepsd" placeholder="再次输入密码" />
			<input type="submit"  value="完成注册" />
		</form>
		<div class="timedown" id="verify">
				获取验证码
			</div>
			<div class="timedown" id="gettimedown">
				<span id="getnum">120</span>秒后重新获取
		</div>
	</div>
	
</body>
<script src="js/zepto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$(function() {
			var vertify = $('#verify');

			var gettime = $('#getnum');
			var getnum = $('#getnum');
			
			/*-----------倒计时验证短信----------*/
			vertify.tap(function() {
				vertify.hide();
				$('#gettimedown').show();
				var gettime = 10; //121;	
				daojishi = setInterval(function() {
					gettime--;
					getnum.html(gettime);
					if(gettime == 0) {
						clearInterval(daojishi);
						$('#gettimedown').hide();
						vertify.show();
						getnum.html(120);
						//vertify.html('重新获取')
					}
				}, 1000);
			});
			$('.tuichu').eq(0).tap(function(){
				history.go(-1);
			})

		})
</script>
</html>

